package com.boat.ai.domain.entity;

import com.boat.ai.domain.enums.LangEnum;
import com.boat.ai.domain.enums.ModelEnum;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import jakarta.persistence.*;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import java.time.Instant;

/**
 * 智能体
 */
@Entity
public class AiAgent extends PanacheEntityBase {
    /**
     * 智能体 id
     */
    @Id
    public Long id;

    /**
     * 智能体名称
     */
    @Enumerated(EnumType.STRING)
    public ModelEnum modelEnum;

    /**
     * 提示词
     */
    public String prompt;

    /**
     * 语言
     */
    @Enumerated(EnumType.STRING)
    public LangEnum lang;

    /**
     * 创建时间
     */
    @CreationTimestamp
    @Column(name = "create_time", updatable = false)
    public Instant createTime;

    /**
     * 更新时间
     */
    @UpdateTimestamp
    @Column(name = "update_time")
    public Instant updateTime;
}
